/*
 * @Description: 全宗操作组件
 * @Author: Rfan
 * @Date: 2022-03-29 13:57:08
 * @LastEditTime: 2022-04-02 16:30:54
 */
import * as React from 'react';
import { Button, Space } from 'antd';
import { useRightApproveContext } from '../contexts/RightApproveContext';

const Operate = () => {
  const { showCheckDialog } = useRightApproveContext();

  /**
   * @description: 打开查看申请弹窗
   */
  const showApproveDialogFunc = () => {
    showCheckDialog();
  };

  return (
    <div className="filter-container">
      <p className="page-title">审批列表</p>
      <Space size="small">
        <Button onClick={showApproveDialogFunc}>审批</Button>
        <Button disabled>电子利用统计</Button>
        <Button disabled>评价/回复</Button>
      </Space>
    </div>
  );
};

export default Operate;
